package br.com.fogas.database.entidade;

import java.io.Serializable;
import java.util.Date;

import br.com.fogas.database.IMetadata;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName=IMetadata.IUsuario.table_name)
public class Usuario implements IMetadata, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@DatabaseField(generatedId = true, columnName=IUsuario.id)
	private Integer id;

	@DatabaseField(width=10, columnName=IUsuario.tx_matricula)
	private String tx_matricula;
	
	@DatabaseField(width=40, columnName=IUsuario.tx_nome)
	private String tx_nome;
	
	@DatabaseField(dataType = DataType.DATE_TIME, columnName=IUsuario.ts_login)
	private Date ts_login;
	
	@DatabaseField(width=6, columnName=IUsuario.tx_token)
	private String tx_token;
	
	public Usuario() {
		// TODO Auto-generated constructor stub
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTx_matricula() {
		return tx_matricula;
	}

	public void setTx_matricula(String tx_matricula) {
		this.tx_matricula = tx_matricula;
	}

	public String getTx_nome() {
		return tx_nome;
	}

	public void setTx_nome(String tx_nome) {
		this.tx_nome = tx_nome;
	}

	public Date getTs_login() {
		return ts_login;
	}

	public void setTs_login(Date ts_login) {
		this.ts_login = ts_login;
	}

	public String getTx_token() {
		return tx_token;
	}

	public void setTx_token(String tx_token) {
		this.tx_token = tx_token;
	}
}